package ace.tool.generate.code.impl.generator.api;

import ace.tool.generate.code.impl.generator.AbstractBaseGenerator;
import ace.tool.generate.code.impl.resolver.scheme.model.EntityClassSchemeModelWithEnum;
import lombok.Builder;
import lombok.NoArgsConstructor;

/**
 * @author caspar
 * @date 2023/11/17 9:57 api class 默认架构内容
 */
@Builder
@NoArgsConstructor
public class EnumGenerator extends AbstractBaseGenerator<EntityClassSchemeModelWithEnum> {
  public static final String ENUM_DATA_KEY = "modelEnum";

  @Override
  protected String getTemplateFile() {
    return "/java/ApiEnum.ftl";
  }

  @Override
  protected String getFileFullName(EntityClassSchemeModelWithEnum model) {
    return model.getModelEnum().getFileFullName();
  }
}
